package com.hcz.client.fallback;

import com.hcz.client.UserClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;

/**
 * @author hcz
 * @describtion TODO
 * @date 2019-06-21 16:52
 */
@Component
public class UserClientFallback implements UserClient {

    @Override
    public String getUser(Long id) {
        return "sorry! 用户查询有异常！";
    }
}
